
package com.wct.define;


public class Constant {
	public final static String SESSION_KEY_APPACCOUNT = "session_appaccount";
	
	public static String CollectionSpace = "wct_database";
	
	public final static short PACKAGESTART = (short) 0x24;
	public final static short PACKAGEEND = (short) 0x25;
	
	public final static Float battery_baseline = 15f;
	
	public class tablenames{
		public static final String AppAccount = "appaccount";
		public static final String Record = "record";
		public static final String Fence = "fence";
		public static final String Config = "config";
		public static final String Device = "device";
		public static final String DeviceMessage = "devicemessage";
		public static final String DeviceHistory = "deviceHistory";
		public static final String EmailUtil = "emailutil";
		
		/******************************/
		public static final String WebAccount = "webaccount";
	}
	
	public class Record{
		public static final String ID = "_id"; //id ObjectId
		public static final String x = "x"; //横坐标（经度）Double
		public static final String y = "y"; //纵坐标（纬度）Double
		public static final String time = "time"; //时间(毫秒数） long
		public static final String deviceid = "deviceid"; //设备id String
		public static final String speed = "speed";//速度 Double
		public static final String angle = "angle";//航向 Double
		public static final String heightGroud = "heightGroud";//水平面高度  Double
		public static final String heightSea = "heightSea";//海拔高度  Double
		public static final String positionStatus = "positionStatus";//定位状态  bool
	}
	
	public class Device{
		public static final String ID = "_id"; //id String
		public static final String devicename = "devicename"; //设备名 String
		public static final String powerStatus = "powerStatus"; //设备状态（开/关机） bool
		public static final String voiceStatus = "voiceStatus"; //音频设备状态（开/关） bool
		public static final String mainNumber = "mainNumber"; //主控号码  String
		public static final String backupNumber1 = "backupNumber1"; //紧急号码1  String
		public static final String backupNumber2 = "backupNumber2"; //紧急号码2  String
		public static final String backupNumber3 = "backupNumber3"; //紧急号码2  String
		public static final String mode = "mode";//工作模式  0:正常模式;1:超级省电模式  int
		public static final String interval = "interval";//上传间隔  0:30s;1:10min;2:1 hour int
		public static final String alertOn = "alertOn";//报警提示开关  bool
		public static final String method = "method";//报警方式 int
		public static final String power = "power";//电量 int
		public static final String online = "online";
	}
	
	public class DeviceMessage{
		public static final String ID = "_id"; //id String
		public static final String deviceid = "deviceid";//设备id String
		public static final String message = "message";//消息 String
		public static final String addition = "addition";//补充消息 String
		public static final String time = "time"; //时间(毫秒数） long
	}
	public class Fence{
		public static final String ID = "_id"; //id String
		public static final String name = "name";//栅栏名 String
		public static final String deviceid= "deviceid";//设备id string
		public static final String x= "x";//横坐标（经度）Double
		public static final String y = "y"; //纵坐标（纬度）Double
		public static final String range = "range"; //范围 Integer
		public static final String infence = "infence"; //设备当前在不在栅栏范围内 bool 
	}
	
	public class Config{
		public static final String ID = "_id"; //id String
		public static final String deviceid= "deviceid";//设备id string
		public static final String xingeId= "xingeId";//设备在信鸽的id
		public static final String time= "time";//时间long
		

	}
	public class AppAccount{
		public static final String ID = "_id"; //id String
		public static final String deviceid= "deviceid";//设备id string
		public static final String name = "name";//用户名 String
		public static final String password = "password";//密码 String
		public static final String initpassword = "initpassword";//初始密码 String
		public static final String email = "email";//初始密码 String
	}
	public class WebAccount{
		public static final String ID = "_id"; //id String
		public static final String name = "name";//用户名 String
		public static final String password = "password";//密码 String\
	}
	public class DeviceHistory{
		public static final String ID = "_id"; //id String
		public static final String deviceid = "deviceid";//设备id String
		public static final String message = "message";//速度 String
		public static final String time = "time"; //时间(毫秒数） long
		public static final String type = "type";//类型 int
	}
	
	public class EmailUtil{
		public static final String ID = "_id"; //id String
		public static final String email = "email";//邮件地址
		public static final String uniquestring = "uniquestring";//唯一性字符串
		public static final String used = "used";//bool 是否使用
		public static final String appAccountId = "appAccountId";//string
		
	}
}
